home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / VB98 / WIZARDS / MSDATOBJ.DLL / 1033 / string.txt next >
Encoding:
Text File  |  1998-06-18  |  38.8 KB  |  623 lines

  1. 40     anything that starts with '******************* is for localization reference only
  2. 41     please do not localize any strings that start with '******************* 
  3. 45    '*******************  frmWizard *******************************
  4. 48    VB 6 Data Object Wizard
  5. 49    VB 6 Data Object Wizard
  6. 50     - 
  7. 51    Introduction
  8. 52    Create Object
  9. 53    Select Data Environment Command
  10. 54    Define Class Field Information
  11. 55    Define Lookup Table Information
  12. 56    Map Lookup Fields
  13. 57    Define and Map Insert Data Command
  14. 58    Define and Map Update Data Command
  15. 59    Define and Map Delete Data Command
  16. 60    Public Interface for Class
  17. 61    Finished!
  18. 62    Select the Data Class to Use
  19. 63    Select User Control Type
  20. 64    Map Class Properties to a Control Type
  21. 65    Enter User Control Name
  22. 66    Please select the DataEnvironment command that your Class will be based on.
  23. 67    Please select the Class that your User Control object will be based on.
  24. 68    Please start a VB Project before launching the Data Object Wizard.
  25. 69    Source Command Fields
  26. 70    Maps To
  27. 71    Lookup Command Fields
  28. 80    Field Name
  29. 81    Nullable?
  30. 82    Primary Key?
  31. 83    Property Name
  32. 84    Control Type
  33. 85    Source Fields
  34. 86     -> 
  35. 87    Insert Command Parameters
  36. 88    Update Command Parameters
  37. 89    Delete Command Parameters
  38. 90    Project can only have one Data Environment.
  39. 91    Error adding ADODB reference.
  40. 92    Error adding MSDATASRC reference.
  41. 93    Error adding MSBind reference.
  42. 94    Error adding StdFormat reference.
  43. 98    '******************* frmWizard *******************************
  44. 99    System information is unavailable at this time.
  45. 100    About 
  46. 101    Version 
  47. 102    '******************* picNav ***********************
  48. 103    Help
  49. 104    Cancel
  50. 105    <&Back
  51. 106    &Next>
  52. 107    &Finish
  53. 108    Data Object Wizard
  54. 109    This Lookup Command is already in the list.
  55. 110    This item has been selected as the Insert command.  Do you want to continue and remove it as the Insert command?
  56. 111    This item has been selected as the Update command.  Do you want to continue and remove it as the Update command?
  57. 112    This item has been selected as the Delete command.  Do you want to continue and remove it as the Delete command?
  58. 113    'The combobox control click events
  59. 114    'The Fire events for the foreign keys
  60. 115    Yes
  61. 116    No
  62. 120    '*******************  Private Sub cmdFKButton_Click  ********************
  63. 121    Please select a Source field.
  64. 122    Please select a Lookup command.
  65. 123    Please select the lookup field(s) for the Lookup command.
  66. 124    Please select the display field for the Lookup command.
  67. 125    This lookup field has already been defined in the list.
  68. 126    There are no items to remove.
  69. 140    '*******************  Private Function CreateSelectListBoxItemSub  **************
  70. 141    ' Purpose: Selects a item from a listbox object based on the lItemDataKey parameter
  71. 142    ' 
  72. 143    ' Inputs: The type of control, a listbox or a combobox control, to populate with the lItemDataKey parameter results
  73. 144    '         lItemDataKey - The Key value for the Item object to select in the listbox or combobox control
  74. 145    ' Function:  Sets the control's listindex provided from the lItemDataKey parameter
  75. 146    ' Exit the subroutine if this control is not a listbox or combobox control
  76. 147    ' Count the items in the listbox
  77. 148    ' Loop through the items of the listbox and set the ListIndex property if the lItemDataKey value is found
  78. 149    ' If the lItemDataKey value is not found set the ListIndex property to select no items in the listbox
  79. 155    '*******************  Private Function CreateDC_PrepareSQLParamFunction  *******************
  80. 156    ' Author:  Microsoft Data Object Wizard
  81. 157    ' 
  82. 158    ' Description:  Optionally adds quotes or substitutes 'null' for
  83. 159    '                  parameter values
  84. 160    Error adding quotes or substituting 'null' parameter values.
  85. 170    '*******************  Function GenerateClass  *****************
  86. 171    Please enter a name for your Class object.
  87. 172    It doesn't appear that you have selected a Command object to build your Class object on.  Please try again.
  88. 173    You have not completed the appropriate steps in the wizard.  Please try again.
  89. 174    This is not a valid name for your Class object.
  90. 175    The Class Module ' 222 ' already exists!\n\nWARNING: If you replace the Class Module,\nthen any modifications you've made to them will be lost!\n\nDo you want to replace the ' 222 ' Class Module?
  91. 176    You must map all Source fields to Lookup fields.
  92. 181    Replace Existing Class Module?
  93. 185    '*******************  Function GenerateUserControl *****************
  94. 186    It doesn't appear that you have selected a Class object to build your User Control object on.  Please try again.
  95. 187    The User Control ' 111 ' already exists\n\n WARNING: If you replace the User Control, then any modifications you've make to it will be lost!\nAnd if the User Control has been placed on a VB Form in your project, then the User Control\nwill be removed from that VB Form.\n\nDo you want to replace the User Control ' 111 '?
  96. 188    This is not a valid name for your User Control object.
  97. 193    Replace Existing User Control?
  98. 200    '*******************  fraStep (0)   ****************************
  99. 201    The Data Object Wizard will help you create Class objects and User Control objects bound to those Class objects.
  100. 202    You must create a Data Environment object with commands to retrieve and manipulate data prior to using this wizard.
  101. 203    You can press the Back button at any time to change your selections.
  102. 204    Please click the Next button to begin.
  103. 205    &Skip this screen in the future.
  104. 206    Introduction Screen
  105. 250    '*******************  fraStep (1)   ****************************
  106. 251    Select the type of object you would like to create.
  107. 252    A &Class object to which other objects can bind data
  108. 253    A &User Control object bound to an existing Class object
  109. 254    Note:  You must have an existing Class object created by the Data Object Wizard to create a User Control object.
  110. 255    Select the Data Environment command
  111. 300    '*******************  fraStep (2)   ****************************
  112. 301    Select the Data Environment command you want to use as the primary source of data.
  113. 302    Select the Data Environment command
  114. 325    '*******************  fraStep (3)   ****************************
  115. 326    Indicate which field(s) can be null and have the Primary Key Attribute(s).
  116. 327    Note: Your responses must be consistent with the database you are using.
  117. 328    Define object data information
  118. 350    '*******************  fraStep (4)   ****************************
  119. 351    Choose the Data Environment commands you want to use as the Lookup references.
  120. 352    Define lookup
  121. 353    Source field:
  122. 354    Lookup command:
  123. 355    Display field:
  124. 356    Lookup on field(s):
  125. 357    Add >
  126. 358    < Remove
  127. 359    Selected lookup commands:
  128. 360    Define Foreign Key Information
  129. 375    '*******************  fraStep (5)   ****************************
  130. 376    Define Foreign Key Information
  131. 377    Map the Source Command fields to the Lookup Command fields.
  132. 378    Foreign key command:
  133. 400    '*******************  fraStep (6)   ****************************
  134. 401    Define updateability
  135. 402    Select the Data Environment command to use to Insert records.
  136. 403    Identify the mapping between Source fields and Insert parameters.
  137. 404    Insert:
  138. 425    '*******************  fraStep (7)   ****************************
  139. 426    Define updateability
  140. 427    Select the Data Environment command to use to Update records.
  141. 428    Identify the mapping between Source fields and Delete parameters.
  142. 429    Use Insert command for Update
  143. 430    Update:
  144. 450    '*******************  fraStep (8)   ****************************
  145. 451    Define updateability
  146. 452    Select the Data Environment command to use to Delete records.
  147. 453    Identify the mapping between Source fields and Delete parameters.
  148. 454    Delete:
  149. 475    '*******************  fraStep (9)   ****************************
  150. 476    Add Interface
  151. 477    The Data Object Wizard has finished collecting information.
  152. 478    Click the Finish button to build your Class object.
  153. 479    &Yes, create a public interface on my Class object
  154. 480    N&o, thank you
  155. 500    '*******************  fraStep (10)   ****************************
  156. 501    Enter the name of the Data Class
  157. 502    What would you like to name your Class object?
  158. 503    The Data Object Wizard has finished collecting information.
  159. 504    Click Finish to build your Class object.
  160. 505    &Save current settings as default
  161. 525    '******************* fraStep (11)   ****************************
  162. 526    Select Class
  163. 527    Select the Class object to use as the Data Source for your User Control object.
  164. 528    Note: The Class objects listed are those created by the Data Object Wizard.
  165. 550    '******************* fraStep (12)   ****************************
  166. 551    Select User Control Type
  167. 552    What type of User control would you like to create?
  168. 553    &Single Record
  169. 554    Single Record &Repeating
  170. 555    &Data Grid
  171. 556    &ListBox
  172. 557    &ComboBox
  173. 575    '******************* fraStep (13)   ****************************
  174. 576    Map Class/Field properties
  175. 577    Choose what type of control to use for each field in the Data Source object.
  176. 578    If you do not want a field to be displayed in the User Control object, choose '(None)'.
  177. 579    Identified as combination Foreign Key attributes
  178. 600    '******************* fraStep (14)   ****************************
  179. 601    Enter name of User Control object
  180. 602    Enter the name of the User Control object to generate:
  181. 603    User Control Name:
  182. 625    '******************* fraStep (15)   ****************************
  183. 626    Finished!
  184. 627    Press the finish button to generate the Class object
  185. 628    Save settings
  186. 650    '******************* frmAbout *******************************
  187. 653    The Visual Basic Data Object Wizard builds Class objects and User Control objects based on Data Environment commands.
  188. 654    Developed for Microsoft by O'Farrell Consulting, Inc.
  189. 655    http://www.ocipro.com
  190. 656    &System Info...
  191. 657    OK
  192. 675    '******************* Command.cls *****************************
  193. 676    It appears you selected a command that requires no input parameters.  Is this correct?
  194. 677    The following parameters in your command do not map to a field in your main Select command: 
  195. 678    You will need to modify the Class object that was created.
  196. 700    '******************* Project.cls *******************************
  197. 701    VB 6 Data Object Wizard
  198. 702    ' 555 Foreign Key RecordSet classes
  199. 705    'The Data Environment object contains all the data access commands.
  200. 706    'Create a new RecordSet class to hold the Foreign Key attributes,\n'    unless there are no Foreign Key attributes, then the Data Environment RecordSet class will be used.
  201. 707    'Variant to store system generated Primary Key values.
  202. 708    'Set the flag when record sets have been initialized.
  203. 709    'This event is run when the RecordSet Move method is complete.
  204. 710    'This event is run when the RecordSet Delete method is complete.
  205. 711    'This event is run when the rsUpdate method is complete.
  206. 712    'This event is run for certain class errors.
  207. 713    'Select Parameter properties for the RecordSet class.
  208. 714    'Foreign Key Parameter properties for the RecordSet classes.
  209. 715    'The external interface Get and Let properties.
  210. 716    'The RecordSet Beginnig Of File status.
  211. 717    'The RecordSet EndOfFile status.
  212. 718    'The RecordSet AbsolutePosition property.
  213. 719    'The Foreign Key Descriptor properties.
  214. 720    '   A new field is added to the created RecordSet class after setting corresponding Foreign Key fields.
  215. 730    Foreign Key Descriptor columns are added to this RecordSet class and 
  216. 731    updated with the Foreign Key Data Environment commands mapped to the Select Foreign Key values.
  217. 732    'Choose the RecordSet class based on the DataMember parameter.
  218. 733    'Skip initialization if RecordSet class already exists.
  219. 734    'Disconnect the RecordSet class to allow (1) stored procedure access
  220. 735    '  and (2) control over database update timing.
  221. 736    'Data object has been initiallized.
  222. 737    'If there are no Foreign Key attributes, then just use a copy of the Data Environment RecordSet class.
  223. 738    'Execute the Foreign Key command.
  224. 739    'If there are no Foreign Keys records, exit with a ClassError event.
  225. 740    'Set the Public property to expose the Foreign Key RecordSet class.
  226. 741    'Disconnect the Foreign Key RecordSet class from the DataSource class.
  227. 742    'Instantiate the new RecordSet class.
  228. 743    'Set the CursorType property of the RecordSet class.
  229. 744    'Set the LockType property of the RecordSet class.
  230. 745    'Loop through each field in the Select command,\n    'adding the field to the created RecordSet class.\n    'If the field is the last field in an Foreign Key command,\n    'then add the Foreign Key Descriptor field.
  231. 749    'Is the Select field the last one in an Foreign Key command?
  232. 750    'Add the Foreign Key Descriptor field to the RecordSet class.
  233. 751    'Add the Select field to the RecordSet class.
  234. 752    'Set the Precision property to the same as in the original RecordSet class.
  235. 753    'Set the NumericScale property to the same as in the original RecordSet class.
  236. 754    'Open the newly created RecordSet class.
  237. 755    'Move to the first record in the RecordSet class.
  238. 756    'Loop through each record in the RecordSet class.\n    'If the Select field is a Foreign Key Descriptor field, look up it's value\n    'in the Foreign Key command Descriptor field, then update the\n    'Select Foreign Key Descriptor field with that value.
  239. 760    'Is the field a Foreign Key Descriptor field?
  240. 761    'Loop through the Foreign Key RecordSet class until the Select value is found.
  241. 762    'If the Select Foreign Key values equal the Foreign Key command Primary Key values, update the Foreign Key Descriptor field.
  242. 763    'Load the vValue Array element with the Foreign Key Descriptor value.
  243. 764    'Move to the next record with a Foreign Key attribute.
  244. 765    'If the value is null, then set the Foreign Key Descriptor Array element value to '(None).
  245. 766    'Set the Array element equal to the value in the Select field.
  246. 767    'To add a record to a RecordSet class two arrays of variants are required,\n    '(1) an array of field names and (2) an array of corresponding values.
  247. 768    'ReDimension the array to hold system generated Primary Key values.
  248. 769    'Add the record to the created RecordSet class.
  249. 770    'Move to the next record in the Select RecordSet class.
  250. 771    'Move to the first record in the created RecordSet class.
  251. 772    'Update all the RecordSet class row status to 'unmodified'.
  252. 773    'Set the Data object to return the Select RecordSet class to the calling procedure.
  253. 774    'Set the Data object to return the Foreign Key RecordSet class to the calling procedure.
  254. 775    (None)
  255. 777     (a RecordSet class)
  256. 778    Contains RecordSet class used as a DataSource class \n    'for a UserControl object.
  257. 780    A new RecordSet class is created from the main 'Select' RecordSet class.  \n    'This RecordSet class is not connected to the database to allow for\n    '(1) separate stored procedures for updates, inserts and deletes\n     'and (2) control of update timing.
  258. 781    'Enumeration for SaveMode property.
  259. 782    Creates and allows selection of RecordSet classes.
  260. 783    A new RecordSet is created from the 'Select' RecordSet class. 
  261. 784    'Save the record when changing to a new row in the ResultSet class.
  262. 785    'Save the record only when running the Update method.
  263. 786    'Specifies either the Immediate or Batch mode Save property for the ResultSet class.
  264. 787    'Flag to prohibit running the WillChangeRecord event.
  265. 788    'Flag to prohibit running the WillChangeRecord event when RecordSet class moves after the Delete method runs.
  266. 789    'Boolean flag is set when GetDataMember event is complete.
  267. 800    '=============================================================
  268. 801    'Name: 
  269. 802    'Author: Microsoft Data Object Wizard
  270. 803    'Date: 
  271. 804    'Description: 
  272. 805    'Comment: 
  273. 812    Saves all modified records.
  274. 820    '******************* Private Function CreateDC_SaveRecord ***********
  275. 826    Saves a single record of the record set.
  276. 840    '******************* CreateDC_PropGetErrorMsg() ******************
  277. 841    ' Description:  Sets error message variables 
  278. 850    '******************* Private Function CreateDC_DeleteRecordSub *******
  279. 851    ' Description:  Temporary ADO direct delete method,\n        'Provide workaround until the Data Environment object supports null parameter values
  280. 853    The following parameters in your Delete command do not map to a field in your Select command: 
  281. 854    You will need to modify the Class object that was created.
  282. 855    An error has occured during the deletion of data.
  283. 856    'Update the current record status to 'unmodified'.
  284. 857    'Workaround for Kagera provider
  285. 858    ' We will use the ADO object temporarily until Data Environment object supports parameters and null values
  286. 859    You cannot delete this field.  This field contains the Primary Key attribute(s) and cannot be Null.
  287. 860    This subroutine deletes a single record.
  288. 870    '******************* Private Function CreateDC_Class_Initialize()  *********
  289. 871    'Reset the Initialization variable.
  290. 873    Standard Class object Initialize event.
  291. 880    '******************* Private Function CreateDC_TerminateSub ************
  292. 881    'Close the Data Environment connection
  293. 882    'Release the Data Environment and RecordSet objects
  294. 884    Closes Data Environment connections and uninitializes objects
  295. 890    '******************* Private Function CreateDC_RSMoveComplete **********
  296. 891    'Exit the subroutine if the BeginningOfFile property is true
  297. 892    'Exit the subroutine if the EndOfFile Property is true
  298. 893    'Raise the rsMoveComplete event
  299. 895    Standard RecordSet MoveComplete event.
  300. 900    '******************* Private Function CreateDC_MoveToPK **************
  301. 901    'Move to the first record in the RecordSet class
  302. 903    Sets the current RecordSet row with Primary Key values
  303. 925    '******************* Private Function CreateDC_ValidateData *****************
  304. 926    'Verify the field is not null.
  305. 927    'Verify the integer field contains a valid value.
  306. 928    'Verify the decimal field contains a valid value.
  307. 929    'Verify the date field contains a valid date.
  308. 930    'Verify the text field contains text.
  309. 931    The field ' 333 ' cannot be null.
  310. 933    This Function validates the RecordSet class data.
  311. 935     current row.
  312. 940    '******************* Private Function CreateDC_PutDataSub  ************
  313. 941    'Check for valid data.
  314. 942    'Raise the ClassError event to detect invalid data.
  315. 943    'Set the parameter values for the command to be executed.
  316. 944    'Execute the command.
  317. 945    The field ' 333 ' does not contain a valid number.
  318. 946    The field ' 333 ' does not contain a valid numeric value.
  319. 947    The field ' 333 ' does not contain a valid date.
  320. 948    The field ' 333 ' does not contain valid text.
  321. 949    Data Validation error.
  322. 950    '******************* Public Function CreateUserControl *****************
  323. 951    'Several flags
  324. 952    'Create parameter properties for the Select RecordSet class
  325. 953    'Use the Data Object Wizard RecordSet class as a DataSource class
  326. 954    'Set the ManualInitialize property to false to automatically initialize or true to manually inititalize the UserControl object
  327. 955    'This event returns the Pimary Key values
  328. 956    'ReDimension the array to hold system generated Primary Key values.
  329. 957    'Save the adImmediate property when the user moves off the row.
  330. 960    'This event returns the Primary Key values
  331. 961    'Set this value to True to load ' 444  ' as the first item in the list
  332. 963    'The current datagrid control column
  333. 964    'Create the datagrid control column constants
  334. 966    'Create the Foreign Key Parameter properties for the RecordSet classes
  335. 969    'Create the Select parameter properties for the RecordSet class
  336. 972    'Use the BindingCollection class for the text fields
  337. 975    ListBox (The ListBox UserControl object)
  338. 976    ListBox UserControl object using a Data Object Wizard RecordSet class as a DataSource class.
  339. 977     (The ListBox UserControl object)
  340. 979    DataGrid (The DataGrid UserControl object)
  341. 980    DataGrid UserControl object using a Data Object Wizard RecordSet class as a DataSource class.
  342. 981    Single Record (The SingleRecordUserControl object)
  343. 982    SingleRecordUserControl object using a Data Object Wizard RecordSet class as a DataSource class.
  344. 983    'Set to true if DataSource error occurs.
  345. 984    'Prohibits several operations the first time the datagrid control loads.
  346. 985    'Prohibits showing the listbox control as the datagrid control loads for the first time.
  347. 986    'Allows the datagrid control to be editable and displays the listbox control on columns with the Foreign Key attributes.
  348. 987    'True if an error occurred in the DataSource class.
  349. 988    'The RecordSet Move event
  350. 989    'Format the object for the datagrid control Boolean columns
  351. 990    '******************* Private Function CreateCB_InitSub ****************
  352. 991    'Use the Data Object Wizard RecordSet class as the DataSource class for the combobox control
  353. 992    'Set the RecordSet class Select parameter properties to the UserControl object values
  354. 993    'Set the source of data for the combobox control
  355. 994    'Put ' 444 ' as the first item in the list
  356. 996    Cannot initialize the ComboBox control.
  357. 997    'Load the combobox control
  358. 998    'To change the Descriptor field, uncomment another field
  359. 999    Data input Error.
  360. 1001    Initializes the combobox control.
  361. 1025    '*******************  Private Function CreateLB_InitSub  ****************
  362. 1026    'Use the Data Object Wizard RecordSet class as the DataSource for the listbox control
  363. 1027    'Set the RecordSet class Select parameter properties to the UserControl object values
  364. 1028    'Set the source of data for the listbox control
  365. 1029    'Load the listbox control
  366. 1030    'To change the Descriptor field, uncomment another field
  367. 1031    Cannot initialize the listbox control.
  368. 1032    Initializes the listbox control.
  369. 1033    '******************* Public Function CreateUserControl Cont. *****************
  370. 1034    'Set this value to true on initial load.
  371. 1035    'This value is true if error occurred in DataSource class.
  372. 1036    'Set this value to true to run the UserControl object Update method
  373. 1037    'RecordSet Move event
  374. 1038    'Add Format object for CheckBox controls
  375. 1039    'Format object for textbox controls
  376. 1040    'Format variables for textbox controls
  377. 1041    'DataSource for Foreign Key RecordSets classes
  378. 1042    'The Event class to run events for RepeatingUserControl objects
  379. 1043    'The Event object reference for Repeating UserControl objects
  380. 1044    'The Foreign Key RecordSet classes
  381. 1045    'The Foreign Key RecordSet class initialization Boolean flags
  382. 1046    'Reset the DataSource class.
  383. 1048    'Resize the listbox control to the UserControl object.
  384. 1049    'Select the first record in the listbox control.
  385. 1050    '*******************  Private Function CreateSR_GetSurKey  ***************
  386. 1051    ' Loop through each record in the Foreign Key RecordSet class until we find the actual Foreign Key values
  387. 1052    'If the Surrogate Key (AbsolutePosition) value is not found, set the function to the first Recordset item
  388. 1054    Moves the RecordSet class to the AbsolutePosition value of the Foreign Key parameters.
  389. 1056    SingleRecordRepeatedUserControl object using a Data Object Wizard RecordSet class as a DataSource class.
  390. 1058    Lookup Field(s)
  391. 1059    Lookup Command
  392. 1060    Source Field
  393. 1061    Display Field
  394. 1062    'If the Foreign Key RecordSet field value(s) equal the Select Foreign Key field values, then get the Surrogate Key (AbsolutePosition) value.
  395. 1063    'Get the Surrogate Key (AbsolutePosition) value.
  396. 1075    '******************* Private Function CreateSR_FillCombo ***************
  397. 1076    'Clear the floating combobox control
  398. 1077    'Move to the first record of the RecordSet class
  399. 1078    'If the foreign key relationship allows nulls, then put '(None)' as\n     'the first combobox Item.
  400. 1080    'Load the combobox control from the RecordSet class
  401. 1082    Fills the Foreign Key combobox controls
  402. 1083    Fills the Foreign Key as hidden in the combobox control
  403. 1100    '******************* Private Function CreateSR_Init  ****************
  404. 1101    'Use the Data Object Wizard RecordSet class as the DataSource class for the datagrid control
  405. 1102    Cannot initialize DataSource.
  406. 1103    Initializes UserControl object
  407. 1104    'This value is set to true during intialization.
  408. 1105    'This value is set to false to Initialize.
  409. 1106    'If DataSource class was not passed as a parameter, create a new instance of the DataSource class.
  410. 1107    'If DataSource class was passed, use that DataSource class.
  411. 1108    'Use the BindingCollection class to bind the textbox controls to the DataSource class.
  412. 1109    'If there is a DataSource error, exit the function.
  413. 1110    'Create the Format object for the checkbox controls.
  414. 1111    'Create the Format object for the textbox controls.
  415. 1112    'Fill the Foreign Key combobox control.
  416. 1113    'Bind the textbox control to the DataSource class.
  417. 1114    'Bind the CheckBox control to the DataSource class.
  418. 1115    'Reset the flag to false.
  419. 1116    'Set the combobox controls to the correct Foreign Key values.
  420. 1117    'Set the flag to true.
  421. 1208    '******************* Private Function CreateDG_InitSub *****************
  422. 1209    'Use the Data Object Wizard RecordSet class as the DataSource class for the datagrid control
  423. 1210    'Set the RecordSet class Select parameter properties to the UserControl object values
  424. 1211    'Set the RecordSet class Foreign Key parameter properties to the UserControl object values
  425. 1212    'Set the source of data for the datagrid control
  426. 1213    Cannot initialize grid control.
  427. 1214    'Allow new records and deletes for the datagrid control
  428. 1215    'Hide columns not used in control
  429. 1216    'Column Headings for the datagrid control
  430. 1217    'Save the current column of the datagrid control
  431. 1218    'Set the Flag to false
  432. 1219    Initializes the datagrid control.
  433. 1220    'Set flags to true on load.
  434. 1221    'Create Format object for the datagrid control Boolean columns
  435. 1222    'Reset the DataSource class.
  436. 1223    'If the DataSource class was not passed as a parameter, create the DataSource class.
  437. 1224    'Use the DataSource class passed as a parameter.
  438. 1225    '******************* Private Function CreateDG_FillCombo  *******************
  439. 1226    'If Foreign Key Identifier field is nullable then put '(None)' as the first record in listbox control
  440. 1227    'Set the listbox control to the Foreign Key value.
  441. 1228    'If the listbox control is outside of the datagrid control, don't show the datagrid control.
  442. 1229    'Turn on the datagrid control cell buttons on the Foreign Key Descriptor columns
  443. 1250    '******************* Private Function CreateDG_ShowFloatingControl  *****************
  444. 1251    'Move and show the listbox control
  445. 1253    Locates and unhides the Foreign Key listbox control.
  446. 1254    'Set the listbox control to the clicked datagrid control column
  447. 1275    '******************* Private Function CreateDG_Grid_RowColChange ****************************
  448. 1276    'Exit the procudure if the GridEditable property is set to false
  449. 1277    'Save the datagrid controls current cell position
  450. 1278    'Show the floating listbox control based on the datagrid controls column property
  451. 1280    Detects and runs functions when the user clicks on the Foreign Key columns of the datagrid control.
  452. 1290    '******************* Private Function CreateDG_Grid_Scroll ****************
  453. 1291    'Hide the listbox control
  454. 1293    Standard DataGrid control Scroll event.
  455. 1294    Standard DataGrid control ButtonClick event code.
  456. 1295    Standard DataGrid control RowColChange event code.
  457. 1300    '******************* Private Function CreateDG_Grid_BeforeDelete ****************
  458. 1301    Delete current record?
  459. 1325    '******************* Private Function CreateCB_ReadProperties  *****************
  460. 1326    Input 
  461. 1350    '******************* Private Function CreateDC_rsUpdate ********************
  462. 1352    Updates Foreign Key Descriptors and raises rsUpdate event
  463. 1360    '******************* Private Function CreateDC_UpdateFKDescriptors **************
  464. 1362    Updates Foreign Key Descriptor field.
  465. 1375    '******************* Private Function CreateDC_RSMoves ****************
  466. 1377    Move to next record.
  467. 1379    Move to first record.
  468. 1381    Move to previous record.
  469. 1383    Move to last record.
  470. 1384    Move the RecordSet n number of Rows.
  471. 1400    '******************* Private Function CreateDC_AddRecord  ****************
  472. 1402    Adds a blank record to the RecordSet class.
  473. 1425    '******************* Private Function CreateCB_ComboBoxClick ***********
  474. 1428    Standard combobox control Click Event.
  475. 1450    '******************* Private Function CreateCB_WriteProperties  ******************
  476. 1452    Standard UserControl object WriteProperties Event.
  477. 1453    'Set ManualInitialize to False to autoinitialize.
  478. 1454    'Set the NoneFirst parameter to load the '(None)' value for null Foreign Key values.
  479. 1455    'Write the Select parameter value.
  480. 1475    '******************* Private Function CreateCB_ReadProperties  *************
  481. 1477    Standard UserControl object ReadProperties Event.
  482. 1478    'Set ManualInitialize = False to autoinitialize.
  483. 1479    'Set NoneFirst parameter to create the '(None)' value as the first item in the listbox control.
  484. 1480    'Read the Select parameter value.
  485. 1481    'If no errors during the reading of the parameters and the user is in the Visual Basic run mode state, run the DataSource class initialize method.
  486. 1500    '******************* Private Function CreateLB_ListBoxClick ***************
  487. 1502    Standard listbox control click event.
  488. 1503    'Raise the listbox control Click event with the Primary Key field values.
  489. 1525    '******************* Private Function CreateLB_ReadProperties  ****************
  490. 1527    Standard UserControl object ReadProperties event.
  491. 1528    'Set the NoneFirst value to create the '(None)' value as the first item in the listbox control.
  492. 1529    'If no errors during the reading of the parameters and the user is in the Visual Basic run mode state, run the DataSource class initialize method.
  493. 1550    '******************* Private Function CreateLB_WriteProperties **************
  494. 1552    Standard UserControl object WriteProperties event.
  495. 1575    '******************* Private Function CreateSR_WriteProperties  **************
  496. 1577    'The ManualInitialize property is set to the false value to initialize automatically.
  497. 1578    'Write the Foreign Key parameter value.
  498. 1579    'Write the SaveMove property value.
  499. 1600    '******************* Private Function CreateSR_ReadProperties *****************
  500. 1602    'Set the ManualInitial property to the false value to initialize automatically.
  501. 1603    'Set the Select parameter value.
  502. 1604    'Set the Foreign Key parameter value.
  503. 1605    'If no errors during the reading of the parameters and the user is in the Visual Basic run mode state, run the DataSource class initialize method.
  504. 1606    'Read the SaveMode property value.
  505. 1625    '******************* Private Function CreateDG_WriteProperties ***************
  506. 1627    Standard UserControl object WriteProperties event.
  507. 1628    'Set the ManualInitialize property to false to initialize the datagrid control automatically.
  508. 1629    'Set the GridEditable property to true to allow editing the datagrid control and activate the Foreign Key listbox controls.
  509. 1630    'Write the Select command parameter value.
  510. 1631    'Write the Foreign Key command parameter value.
  511. 1640    '******************* Private Function CreateSR_SaveAll *****************
  512. 1641    This subroutine runs the Class control UpdateBatch method.
  513. 1650    '******************* Private Function CreateSR_SaveRecord ******************
  514. 1651    This subroutine runs the Class object Update method.
  515. 1652    'Trigger the update if the user does not move off the row.
  516. 1700    '******************* Private Function CreateDG_ClassError **************
  517. 1701    This subroutine performs the Sink action on the ClassError event.
  518. 1725    '******************* Private Function CreateSR_Moves  **************
  519. 1726    Move the SingleRecord control to the first record of RecordSet class.
  520. 1727    Move the SingleRecord control to the previous record of RecordSet class.
  521. 1728    Move the SingleRecord control to the next record of the RecordSet class.
  522. 1729    Move the SingleRecord control to the last record of the RecordSet class.
  523. 1750    '******************* Private Function CreateSR_PutDataUpdate  *****************
  524. 1752    This function will update the DataSource class.
  525. 1775    '******************* Private Function CreateSR_UpdateFKSubs  *****************
  526. 1776    Sets the Foreign Key properties based on the Surrogate Key value in the class.
  527. 1778    'Loop through the Foreign Key RecordSet class until the correct Surrogate Key value(the AbsolutePosition property) is found.
  528. 1779    'Set the Select Foreign Key field value to the Foreign Key RecordSet field value.
  529. 1800    '******************* Private Function CreateSR_SetFKCombos *****************
  530. 1802    This function sets the ListIndex property of the combobox control to the Surrogate Key value of the Foreign Key attribute.
  531. 1803    'Set the combobox control to the correct value.
  532. 1804    'Set the combobox control to the first item if Foreign Key value is null.
  533. 1805    'Set the combobox control to the correct item for the Foreign Key value.
  534. 1825    '******************* Private Function CreateSR_UserControlTerminate ***************
  535. 1827    Standard UserControl object Terminate event
  536. 1840    '******************* Private Function CreateSR_RsMoveComplete *************
  537. 1842    Sink the RecordSet class rsMoveComplete event
  538. 1843    'Update the Foreign Key combobox control.
  539. 1875    '******************* Private Function CreateDG_UpdateFKSubs **************
  540. 1878    'Set the actual Foreign Key value to null
  541. 1900    '******************* Private Function CreateDG_SaveRecord ***************
  542. 1902    Standard lstEdit control click event.
  543. 1950    '******************* Private Function CreateLB_Resize ***************
  544. 1951    'Resize the listbox control to the UserControl object when we are in the Visual Basic Design Time mode.
  545. 1952    Standard UserControl object Resize event.
  546. 2000    '******************* Private Function CreateCB_Resize ***************
  547. 2001    'Resize the combobox control to the UserControl object when we are in the Visual Basic Design Time mode.
  548. 2100    '******************* Private Function CreateDG_ColResize ***************
  549. 2101    'If the listbox control does not extend past the datagrid control, then resize the listbox control to the column width of the datagrid control.
  550. 2102    'If the listbox control extends past the datagrid control, then do not show the listbox control.
  551. 2103    Standard UserControl object Resize event.
  552. 2104    Standard DataGrid control ColResize event.
  553. 2200    '******************* Private Function CreateDG_Resize ***************
  554. 2201    'Resize the datagrid control to the UserControl object when we are in Visual Basic Design Time mode.
  555. 2300    '******************* Private Function CreateSR_AddRecord ***************
  556. 2301    'Add a blank record to the DataSource RecordSet class.
  557. 2302    'Update the Foreign Key combobox control with the correct value.
  558. 2303    Adds a new record to the RecordSet class.
  559. 2400    '******************* Private Function CreateSR_DeleteRecord ***************
  560. 2401    'Delete the current DataSource record.
  561. 2402    Deletes a record from the RecordSet class.
  562. 2500    '******************* Private Function CreateCB_ComboBoxClick ***************
  563. 2501    'Raise the combobox control Click event with the Primary Key field values.
  564. 2600    '******************* Private Function CreateCB_InitSub Cont. ****************
  565. 2601    'The DataSource class was not passed as a parameter.  Now create a new DataSource class.
  566. 2602    'The DataSource was passed as a parameter, so use the existing DataSource class.
  567. 2603    'If there is a DataSouce class error, exit the function.
  568. 2604    'By default, the first field with a textbox control will be displayed\n     'in the listbox control.  If you would like to have another field displayed,\n     'in the combobox control comment out the first 'If..End If'\n     'textbox control field below and uncomment the desired\n    ' 'If..End If' to display.
  569. 2605    'By default, the first field with a textbox control will be displayed\n     'in the combobox control.  If you would like to have another field displayed,\n     'in the combobox control comment out the first 'If..End If'\n     'textbox control field below and uncomment the desired\n    ' 'If..End If' to display.
  570. 2608    'Return the DataSource class.
  571. 2609    'Clear the control name from the combobox control.
  572. 2610    'Resize the combobox control to the UserControl object.
  573. 2611    'Select the first record in the combobox control.
  574. 2700    '******************* Private Function CreateDG_ReadProperties ****************
  575. 2701    'Set ManualInitialize property to false to initialize the datagrid control automatically.
  576. 2702    'Set GridEditable property to true to allow editing of the datagrid control and activate Foreign Key listbox controls.
  577. 2703    'Set the Select command parameter property value.
  578. 2704    'Set the Foreign Key command parameter property value.
  579. 2705    'If parameter values were read then initialize the DataSource class.
  580. 2800    '******************* Private Function CreateSR_ComboClicks ****************
  581. 2801    'Update the DataSource class Foreign Key properties.
  582. 2802    Standard combobox control Click event.
  583. 2900    '******************* Private Function CreateSR_MoveToPK ****************
  584. 2901    'Run the DataSource class MoveToPK method with the Primary Key values.
  585. 3000    '******************* Private Function CreateDG_InitSub Cont. ****************
  586. 3001    'If there is an error, exit the function.
  587. 3002    'Show both scroll bars for the control.
  588. 3003    'Since the listbox control height cannot resize, force the same for the datagrid control RowHeight property.
  589. 3004    'Set the RowHeight property to make the listbox controls appear in the row of the datagrid control.
  590. 3005    'Format the Boolean columns of the datagrid control
  591. 3006    'Return the Class object.
  592. 3007    'Resize the datagrid control to the UserControl object when we are in the Visual Basic Run Time mode.
  593. 3100    '******************* Private Function CreateDG_Grid_RowColChange Cont. ****************
  594. 3101    'Fill the listbox control, set the control to the value of the Foreign Key and show it.
  595. 3200    '******************* Private Function CreateDG_GetSurKeySubs Cont. ****************
  596. 3201    'Return the Surrogate Key value.
  597. 3203    'Move the Foreign Key RecordSet class to the Surrogate Key value(the AbsolutePosition property.)
  598. 3204    'Set the DataSource class property to the value of the Foreign Key RecordSet class field.
  599. 3300    '******************* Private Function CreateDG_CmbEditClick Cont. ****************
  600. 3301    'Run the UpdateFK method to update the DataSource class Foreign Key Property value(s).
  601. 3302    'Update the datagrid control's cell with the listbox control List value.
  602. 3400    '******************* Private Sub LoadVBInstanceInfo ****************
  603. 3401    Error retrieving Data Environment information for the existing class module: 
  604. 3500    '******************* General Declarations ****************
  605. 3501    You do not have the proper license to load the Visual Basic 98 Application Wizard!  You must have the Learning, Professional, or Enterprise edition of Visual Basic installed!
  606. 3502    The Visual Basic 98 Application Wizard requires a version 6.0 or newer version of Visual Basic.
  607. 3600    '******************* CreateDG_KeyPress ****************
  608. 3601    Standard DataGrid control KeyPress event.
  609. 3700    '******************* CreateSR_Validates ****************
  610. 3701    Standard Validate event.
  611. 3800    '******************* CreateSR_Formats ****************
  612. 3801    Standard Format event.
  613. 3802    Standard UnFormat event.
  614. 3900    '******************* CreateDG_MoveComplete ****************
  615. 3901    UserControl object MoveComplete event.
  616. 4000    '******************* CreateDG_Grid_BeforeDelete ****************
  617. 4001    Standard DataGrid control BeforeDelete event.
  618. 4002    Delete current record?
  619. 4100    '******************* CreateDC_GetPKValue ****************
  620. 4101    Looks up newly inserted system gen'd PK values.
  621. 4200    '******************* Function FillFieldsGrid ****************
  622. 4201    The Field ' 666 ' has a space in it.  You cannot select a Command where a Field has a space in its name.
  623.